<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://www.pimpas.net/web/jsf" prefix="pimp"%>
<%@ taglib uri="http://www.behindclienteyes.com/taglib" prefix="bce"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view>
	<html>
	<head>
		<script src="js/pageHandler.js"></script>
	<style>
	.test {
		border: 1px solid black;
		width: 400px;
		height: 200px;
		display: block;
	}
	</style>
	<title>BCE Framework Tests</title>
	</head>
	<body>
		<h:form>
			<div id="bce_view">
				<bce:simple styleClass="test">
					<bce:mouseListener/>
				</bce:simple>
			</div>
		</h:form>
<script>
pimpas.Log.TestGlobalListener = new pimpas.Listener();
pimpas.Extends(pimpas.Log.TestGlobalListener,
	{
		callBack: function(ref, obj) {
			var l0g = null;
			var el = pimpas.DOM.getElement( 'log' );
			var className = null;
			var div = null;
			var t = null;
			var h,m,s,ss;
			div = pimpas.DOM.createElement("div", null);		
			h = obj.time.getHours();
			m = obj.time.getMinutes();
			s = obj.time.getSeconds();
			t = pimpas.DOM.createTextNode("["+h+":"+m+":"+s+"] => "+obj.message);
			
			pimpas.DOM.add(div, t);
			pimpas.DOM.add(el, div);
		}
	}
);

pimpas.Log.addGlobalListener( pimpas.Log.TestGlobalListener );
</script>
<div id="log"/>
	</body>
	</html>
</f:view>